package com.finance.cooperate.data.builder;

import com.finance.cooperate.data.base.Builder;
import com.finance.cooperate.data.base.Reader;
import com.finance.cooperate.data.reader.PublicReader;
import com.finance.cooperate.data.reader.ScrapyReader;
import com.finance.cooperate.data.reader.SmsReader;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @ClassName ReaderBuilder
 * @Description TODO
 * @Author shen
 * @Date 2023/8/10 21:47
 * @Modify ...
 */
@Component
public class ReaderBuilder implements Builder<Reader> {

    @Override
    public List<Reader> build() {
        return new ArrayList<Reader>(Arrays.asList(

                new PublicReader(),
//                new AppReader()
                new SmsReader()
//                new ScrapyReader()
        ));
    }
}
